package com.filldream.fastboot.web.controller.common;

import com.filldream.fastboot.core.manager.WxJsSDKManager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;

/**
 * @author RickSun && iFillDream
 * @version 1.0
 * @data 2020-05-07 17:49
 * @description WxShareController
 */
@Api(tags = "微信分享-common")
@RestController
@RequestMapping("/common/wxShare")
public class WxShareController {

    @Autowired
    private WxJsSDKManager wxJsSDKManager;

    @ApiOperation("获取JsSdkConfig")
    @GetMapping("/getJsSdkConfig")
    public Map<String, String> getJsSdkConfig(String url,String wxAppId){
        return wxJsSDKManager.getJsSdkConfig(url, wxAppId);
    }

}
